﻿<%@ Page Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true" CodeFile="ForgotPassword.aspx.cs" Inherits="ForgotPassword" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script type="text/javascript" >
        $(document).ready(function(){
           
            $("#ctl00_ContentPlaceHolder1_btnSubmit").click(function(){
                var userName = $("#ctl00_ContentPlaceHolder1_txtUserName").attr("value");
                var email = $("#ctl00_ContentPlaceHolder1_txtEmail").attr("value");
                if(userName == "" || email == "")
                {
                    alert("Bạn chưa nhập đầy đủ thông tin tài khoản!!!");
                    return false;
                }
                return true;
            });
               
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label runat="server" ID="lblContent">
    <table width="70%" border="0" cellpadding="4" cellspacing="0" align="center">
        <tr>
            <td class="table_header">Quên mật khẩu</td>
        </tr>
        <tr>
            <td id="tdForgotPassword" align="center" style="font-weight:bold"><asp:Label runat="server" ID="lblForgotPassword">
                <form action=""  method="post" name="frmForgotPassword" id="frmForgotPassword">
                    <table style="font-weight:bold" width="70%" border="0" cellpadding="4" cellspacing="0">
                        <tr>
                            <td colspan="2" align="center" style="font-size: 16px; color:#E7E51D">Mời bạn nhập thông tin về tài khoản</td>
                        </tr>
                        <tr>
                            <td valign="top">Tên tài khoản:</td>
                            <td><asp:TextBox runat="server" ID="txtUserName" CssClass="textfield" ></asp:TextBox><span class="style4">*</span><br/><asp:Label runat="server" ID="lblUsernameErr" ></asp:Label></td>
                        </tr>
                        <tr>
                            <td valign="top">Email:</td>
                            <td><asp:TextBox runat="server" ID="txtEmail" CssClass="textfield" ></asp:TextBox><span class="style4">*</span><br/><asp:Label runat="server" ID="lblEmailErr" ></asp:Label></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td>
                                <asp:Button runat="server" ID="btnSubmit" Text="Đồng ý" 
                                    onclick="btnSubmit_Click" />&nbsp;
                                <a href="javascript:history.go(-1)"><input type="button" id="btnPrevious" value="Quay lại"/></a>
                            </td>
                        </tr>
                    </table>
                </form></asp:Label>
            </td>
        </tr>
    </table>
    </asp:Label>
</asp:Content>

